import React from 'react'
export type DispatchFn = (action:ActionType)=>void
export type ActionType = {
    type:string;
    payload?:any
}
export interface InitStateContextProps {
    list:Array<string>;
    dispatch: DispatchFn;
}
export const InitState:InitStateContextProps = {
    list:[],
    dispatch:({})=>{}
}
export const ContextStore = React.createContext<InitStateContextProps>(InitState);
